#include "include.h"

#ifdef USE_QT

#include "qt_utils.h"


#include "compile/debug_memoryleaks"

using namespace gui;
using namespace qtgui;

gui::SizeEvent qtgui::buildEvent(const QResizeEvent&  qt_event)
{
    return SizeEvent( Vector(  qt_event.size().width(), qt_event.size().height() ),
                      Vector(  qt_event.oldSize().width(), qt_event.oldSize().height() ) );
}

gui::MouseEvent qtgui::buildEvent(const QMouseEvent&  qt_event)
{
    Qt::MouseButton btn = qt_event.button();
    return MouseEvent( Vector(qt_event.x(), qt_event.y()) , btn);
}


#endif
